import axios from 'axios'
import qs from "qs"
const request = axios.create({
  timeout: 10 * 1000,
  headers: {
    'content-type': 'application/json'
  }
})
export default {
  postSearch: (data) => {
    return axios.post('/api/search', data)
  },
  getSuggestWords: () => {
    return axios.get('/api/getSuggestWords')
  },
}